package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 post_image
 *
 * @author ruoyi
 * @date 2025-08-04
 */
public class PostImage extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Integer postId;

    /** 图片id */
    @Excel(name = "图片id")
    private Integer imageId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPostId(Integer postId)
    {
        this.postId = postId;
    }

    public Integer getPostId()
    {
        return postId;
    }

    public void setImageId(Integer imageId)
    {
        this.imageId = imageId;
    }

    public Integer getImageId()
    {
        return imageId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("postId", getPostId())
            .append("imageId", getImageId())
            .append("createTime", getCreateTime())
            .toString();
    }
}
